Skip to main content

FlowDocument

The FlowDocument class represents a flow document with various configurable properties, inheriting from FlowObjectDesigner.

The FlowDocument class is responsible for managing document operations within a workflow. It provides comprehensive functionality for handling forms, document states, and control values. The class implements ILiquidizable for template rendering and includes features for form management, control value manipulation, and document state updates.

Key features:

  • Form instance management
  • Control value manipulation
  • Document state updates
  • Document saving and deletion
  • Data grid operations
  • Unique ID management
  • Template rendering support
  • Build manager integration
  • Deployment URL management

Properties

NameDescription
KeyA unique identifier for the workflow step.
WorkflowCodeInstanceThe workflow code instance associated with the flow object.
CachedDMObjectsThe cached document management objects related to the flow object.
FormCaptionSpecifies the caption of the form associated with the document.
ViewIdIdentifies the ID of the view associated with the document.
DocumentIdRepresents the unique identifier for the document.
FormNameRepresents the name of the form associated with the document.
ProcessNameRepresents the name of the process associated with the document.
IsChangedIndicates whether the document properties have been modified.
TypeCodeThe type code associated with the flow object.
TypeSpecifies the type of document to be created.
NameName for the workflow step.
ViewNameDefines the name of the view linked to the document.
ExistingDocumentPathSpecifies the path to an existing document.
ParametersRepresents a dictionary of parameters associated with the document.
PanelSizeRepresents the size of the panel associated with the document.
FileIdSpecifies the file ID linked to the document.
DeploymentUrlSpecifies the deployment URL for the document.
FormInstanceThe FormInstance class manages a form instance, providing properties and methods for handling form settings, secrets, user events, deployment URL configurations, and controls. It integrates encryption and decryption for secure management of SecretKey and other sensitive data.
BuildManagerSettingsRepresents the build manager settings for the workflow.
CaptionThe caption dictionary representing localized captions for the flow object.
ProcessIdDefines the process ID associated with the document.
ControlsThe Controls class represents a collection of form controls within a client form, providing access through an indexer.
FormIdIdentifies the form ID related to the document.

Constructors

NameDescription
FlowDocument(name, workflowData, workflowCodeInstance)Constructor for the FlowDocument class. Initializes a new instance of the FlowDocument class.
FlowDocument(name, workflowData, workflowCodeInstance)Initializes a new instance of the FlowDocument class.

Methods

NameDescription
SetExistingDocumentByPathAsync(existingDocumentPath)
SetControlText(controlName, text)Sets the text of a specified control in the document.
Initialize()Initializes the document and prepares it for further operations.
SetControlValue(controlName, value)Sets the value of a specified control in the document.
GetControlValue(controlName)Retrieves the value of a specified control from the document.

Events

NameDescription
OnBeforeExecution(sender, args)Occurs before the execution of the workflow step.
OnAfterExecution(sender, args)Occurs after the execution of the workflow step.

Generic Types

NameDescription
TPropertiesGeneric type of properties.